From 42b7a80b010e1b0270d5732d963241dfb3beeaf7 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Mon, 26 Jul 2010 11:29:11 +0100 Subject: [PATCH] # HG changeset patch # User Olaf Hering # Date 1280140115 -3600 # Node ID 8c3e1e8ddd599371d882b17996be88b545119ccb # Parent 2092c06f9467747da608c448ddd01e2f1f82290a tools/hotplug: init.d should test for /proc/xen/capabilities being a file Correct test for /proc/xen/capabilities It is a file, not a directory. Signed-off-by: Olaf Hering Committed-by: Ian Jackson --- tools/hotplug/Linux/init.d/xencommons | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hotplug/Linux/init.d/xencommons b/tools/hotplug/Linux/init.d/xencommons index 874db88e47..40b7cbe94b 100644 --- a/tools/hotplug/Linux/init.d/xencommons +++ b/tools/hotplug/Linux/init.d/xencommons @@ -25,7 +25,7 @@ shopt -s extglob if test "x$1" = xstart && \ test -d /proc/xen && \ - ! test -d /proc/xen/capabilities && \ + ! test -f /proc/xen/capabilities && \ ! grep '^xenfs ' /proc/mounts >/dev/null; then mount -t xenfs xenfs /proc/xen -- 2.30.2